package com.liuzeyuan.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ExcelTarget("users")
@Data
public class User implements Serializable {
    @Excel(name = "编号")
    private String id;
    @Excel(name = "姓名")
    private String name;
    @Excel(name = "生日",format = "yyyy-MM-dd")
    private Date bir;
    @Excel(name = "爱好")
    private String habbys;
    @ExcelIgnore
    @Excel(name = "头像",type = 2,savePath = "D:\\cofe\\source\\easypoi-dome\\easypoi-springboot\\src\\main\\resources\\static\\imgs")
    private String photo;
    @Excel(name = "身份证号")
    private String no;
    @Excel(name = "地址")
    private String address;
}
